package com.spring.bean.register;

import com.alibaba.fastjson.JSONObject;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@BeanScan(basePackage = "com.spring.bean.register")
public class JavaBeanApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(JavaBeanApplication.class);
        Object object = annotationConfigApplicationContext.getBean(Person.class);
        System.out.println(JSONObject.toJSONString(object));
    }
}
